#pragma once

#include "Action.h"
#include "KeyInfo.h"

namespace kryptos { namespace actions {

class ActionCreateKey : public Action
{
    Q_OBJECT
  public:
    ActionCreateKey(kryptos::entities::KeyInfo keyinfo);
    ~ActionCreateKey();

  protected:
    // Action Methods
    virtual bool Prepare(     );
    virtual void RunAction(   );
    virtual bool Cleanup(     );

  private:
    bool CreateKey();

    kryptos::entities::KeyInfo m_keyinfo;
};

}}
